<@master template="master/master-loan"  title="选择分类">
<form action="/rclassify/save_start" method="post" class="action-ajax-form">
<#if status??>
<div class="detaiTab  detaiTab1">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
	  <tr>
	  <td><span style="color:red;">改单流程未结束不能变更！</span></td>
	  </tr>
</table>
<input type="button" onclick="back();" class="btn_auto_30 btn_blue" value="返回" />
</div>
<#else>
<div class="detaiTab  detaiTab1">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
	  <tr>
	     <td class="bg" align="right" width="15%">贷款单号:</td>
	     <td width="35%"> 
	     	${entity.billCode}
	     </td>
	     <td class="bg" align="right" width="15%">借款人:</td>
	     <td > 
      		${entity.loanUserName}
	     </td>
	    </tr>
	  <tr>
	     <td class="bg" align="right" width="15%">信贷经理:</td>
	     <td > 
      		${entity.opererName}
	     </td>
	     <td class="bg" align="right" width="15%">原贷款分类:</td>
	     <td > 
      		<@select dataSouceType="CLASSIFY" name="oldLoanType" class="tabInp" value="${abjustTypeFlow.oldLoanType}" renderonly="true" />
	     </td>
	    </tr>
	  <tr>
	     <td class="bg" align="right" width="15%">调整状态:</td>
	     <td > 
      		<@select dataSouceType="CLASSIFY" name="newLoanType" class="tabInp" value="${abjustTypeFlow.newLoanType}"  />
	     </td>
	     <td class="bg" align="right" width="15%"></td>
	     <td > 
      		
	     </td>
	    </tr>
	  <tr>
	     <td class="bg" align="right" width="15%">调整原因:</td>
	     <td colspan="3"> 
	     <textarea rows="3" cols="100" name="ajustReason" maxlength="500" >${abjustTypeFlow.ajustReason}</textarea>
	     </td>
	    </tr>
</table>
<div class="openBox action-ajax-load" data-url="<@url value='/rclassify/loadfile?id=${abjustTypeFlow.id}'/>"></div>
<div width="100%" style="text-align: center;">
	     	<input name="startType" type="hidden" id="sas" value=""/>
	     	<input name="loanapplyNo" type="hidden" value="${entity.loanapplyNo}"/>
	     	<input name="id" type="hidden" value="${abjustTypeFlow.id}"/>
	     	<input name="abjustId" type="hidden" value="${entity.id}"/>
      		<input type="submit" value="保存" id="sv" class="btn_auto_30 btn_blue"/>&nbsp;&nbsp;&nbsp;&nbsp; 
      		<input type="button" onclick="saveAndStart();" value="保存并启动流程" class="btn_auto_30 btn_blue"/>&nbsp;&nbsp;&nbsp;&nbsp; 
      		<input type="button" onclick="back();" class="btn_auto_30 btn_blue" value="返回" />
</div>
</div>
</#if>
</form>
<script type="text/javascript">
	
	function saveAndStart(){
		$("#sas").val("saveStart")
		$("#sv").click();
	}
	
	function back(){
		window.location.href = "/classify/ma";
	}
</script></@master>